<?php 

declare(strict_types=1);

namespace WanZ\App\Utils\Prometheus;

/**
 * Class PrometheusFactory
 * @package WanZ\App\Utils\Prometheus
 *
 * @method static \WanZ\App\Utils\Prometheus\AgentBusiness agentBusiness()
 * @method static \WanZ\App\Utils\Prometheus\Brother brother()
 * @method static \WanZ\App\Utils\Prometheus\User user()
 * @method static \WanZ\App\Utils\Prometheus\All all()
 * @method static \WanZ\App\Utils\Prometheus\StatisticsRequest statisticsRequest()
 */
class PrometheusFactory
{
    /**
     * @param $name
     * @param array $arguments
     * @return mixed|object|string
     * @throws ParamsException
     */
    public static function __callStatic($name, array $arguments = [])
    {
        $namespace = getNamespace($name);
        $namespace = "\\WanZ\\App\\Utils\\Prometheus\\{$namespace}";
        return new $namespace;
    }
}
